Generating Empirically Optimized Composed Matrix Kernels from MATLAB Prototypes

نویسندگان

  • Boyana Norris
  • Albert Hartono
  • Elizabeth R. Jessup
  • Jeremy G. Siek
چکیده

The development of optimized codes is time-consuming and requires extensive architecture, compiler, and language expertise, therefore, computational scientists are often forced to choose between investing considerable time in tuning code or accepting lower performance. In this paper, we describe the first steps toward a fully automated system for the optimization of the matrix algebra kernels that are a foundational part of many scientific applications. To generate highly optimized code from a high-level MATLAB prototype, we define a three-step approach. To begin, we have developed a compiler that converts a MATLAB script into simple C code. We then use the polyhedral optimization system Pluto to optimize that code for coarse-grained parallelism and locality simultaneously. Finally, we annotate the resulting code with performancetuning directives and use the empirical performance-tuning system Orio to generate many tuned versions of the same operation using different optimization techniques, such as loop unrolling and memory alignment. Orio performs an automated empirical search to select the best among the multiple optimized code variants. We discuss performance results on two architectures.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Programming Hints for Kernel–Based Methods

Hopefully helpful stuff for writing prototypes of programs for kernel–based methods, in particular for radial kernels or matrix–valued divergence–free kernels. The focus is on MATLAB programming. None of the programs is optimized for anything, in particular not for speed. 1 Basics We assume x, y to be vectors in R d , and we consider radial kernels of the form K(x, y) = φ(x − y 2), for all x, y...

متن کامل

Optimized data fusion for K-means Laplacian clustering

MOTIVATION We propose a novel algorithm to combine multiple kernels and Laplacians for clustering analysis. The new algorithm is formulated on a Rayleigh quotient objective function and is solved as a bi-level alternating minimization procedure. Using the proposed algorithm, the coefficients of kernels and Laplacians can be optimized automatically. RESULTS Three variants of the algorithm are ...

متن کامل

TMG: A MATLAB Toolbox for Generating Term-Document Matrices from Text Collections

A wide range of computational kernels in data mining and information retrieval from text collections involve techniques from linear algebra. These kernels typically operate on data that is presented in the form of large sparse term-document matrices (tdm). We present TMG, a research and teaching toolbox for the generation of sparse tdm's from text collections and for the incremental modificatio...

متن کامل

Data Fusion with Optimized Block Kernels in LS-SVM for Protein Classification

In this work, we developed a method to efficiently optimize the kernel function for combined data of various different sources with their corresponding kernels being already available. The vectorization of the combined data is achieved by a weighted concatenation of the existing data vectors. This induces a kernel matrix composed of the existing kernels as blocks along the main diagonal, weight...

متن کامل

Analog Circuit Feasibility Modeling using Support Vector Machine with Efficient Kernel Functions

Performance Macromodeling facilitates accelerated analog circuit synthesis. It usually consist of two steps: feasibility design space identification and performance macromodels generation. A feasibility design space is defined as a multidimensional space in which every design satisfies all the design constraints. The minimum set of constraints is the one that ensures the correct functionality o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009